<html lang="zh-cmn-Hans">

<head>
  <!-- Required meta tags -->
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  <!-- Bootstrap CSS -->
  <link rel="stylesheet" href="/bootstrap-4.0.0-dist/css/bootstrap.min.css">
  <style>
    .my-container {
      width: 200px;
      height: 200px;
      background: #ddd;
      margin-bottom: 5px;
    }
  </style>
  <title>padding和margin的使用</title>
</head>

<body>
  <div class="my-container pt-2 pl-2">
    <div class="bg-primary w-50 h-50 pt-5 pl-5">小马视频</div>
  </div>
  <div class="my-container px-5 py-5">
    <div class="bg-success w-100 h-100">小马视频</div>
  </div>
  <!-- Optional JavaScript -->
  <!-- jQuery first, then Popper.js, then Bootstrap JS -->
  <script src="/bootstrap-4.0.0-dist/others/jquery-3.2.1.slim.min.js"></script>
  <script src="/bootstrap-4.0.0-dist/others/popper-1.12.9.min.js"></script>
  <script src="/bootstrap-4.0.0-dist/js/bootstrap.min.js"></script>
</body>

</html>